package com.example.factory;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

//@SpringBootApplication
public class carFactory {
    public static void main(String[] args){
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext();
//        new SpringApplicationBuilder(carFactory.class).web(WebApplicationType.REACTIVE).contextClass(context).run(args);
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                "classpath*:applicationContext.xml");
        context.start();
        try {
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
